
import 'package:json_annotation/json_annotation.dart';


//定义生成的文件 flutter pub run build_runner build --delete-conflicting-outputs
part 'bean_socket_msg.g.dart';

@JsonSerializable(explicitToJson: true)
class BeanSocketMsg {

  // getTicketData getTestData getHeartData printResultStatus localPrint, baiduTTS
   String type="android_dict_json";//标识给iOS判断使用
   String? msgType;

   String? printSceneJson;
   String? printData;
   String? orderId;
   String? orderNo;
   String? orderType; //销售/退货类型
   String? kmPrintH5Id;

   String? isSuccessPrint; //0失败 1成功
   String? printResultMsg;

  //百度语音
   String? speakMsg;


   BeanSocketMsg(
       {
         this.type='android_dict_json',
         this.msgType,
         this.printSceneJson,
         this.printData,
         this.orderId,
         this.orderNo,
         this.isSuccessPrint,
         this.printResultMsg,
         this.speakMsg,
         this.orderType,
         this.kmPrintH5Id
}); //h5记录使用,原样返回


  factory BeanSocketMsg.fromJson(Map<String, dynamic> json) => _$BeanSocketMsgFromJson(json);
  Map<String, dynamic> toJson() => _$BeanSocketMsgToJson(this);
}



